package exotica.rs2.net;


import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.channel.ChannelPipelineFactory;
import org.jboss.netty.channel.Channels;

import exotica.rs2.net.codec.ServerLoginDecoder;
import exotica.rs2.net.codec.ServerMessage;

/**
 * @author Sir Tom
 *
 */
public class ServerPipelineFactory implements ChannelPipelineFactory {

	/**
	 * The server decoders/encoders
	 */
	@Override
	public ChannelPipeline getPipeline() throws Exception {
		ChannelPipeline pipeline = Channels.pipeline();
		pipeline.addLast("decoder", new ServerLoginDecoder());
		pipeline.addLast("handler", new ServerMessage());
		return pipeline;
	}

}
